<?=view('admin.common.header')?>
<style>
    .table>tbody>tr>td {vertical-align: middle;}
</style>
<form id="modifyform" action method="post">
<table class="table">
    <tr>
        <td><?php if ($status == 2): ?>打款备注<?php elseif($status==3): ?>不通过原因<?php endif; ?></td>
        <td>
            <textarea type="text" name="adminmark" class="form-control" value="" style="min-height: 155px;" required="required"></textarea>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <button class="btn btn-primary form-control eveModify">提　交</button>
        </td>
    </tr>
</table>
    <script>
        $('.eveModify').click(function(){
            var mark = $('textarea[name="adminmark"]').val();
            if (mark == '') {
                layer.msg('备注不能为空');
                return false;
            }
            $("#modifyform").ajaxSubmit(function(data){
                layer.msg(data.info);
                if (data.status == 1) {
                    window.parent.location.reload();
                }
            });
            return false;
        })
    </script>
</body>
</html>